package com.hsgene.common.util.web.access.exception;

import com.hsgene.common.util.exception.ErrorCode;

/**
 * 用户登录校验异常
 *
 * @author wangbing
 * @version 1.0, 2018/11/9
 */
public abstract class TokenException extends RuntimeException {

    /**
     * 错误信息
     *
     * @return TokenException
     */
    public abstract ErrorCode getErrorCode();

    public TokenException() {
        super();
    }

    public TokenException(String message) {
        super(message);
    }

    public TokenException(Throwable cause) {
        super(cause);
    }

    public TokenException(String message, Throwable cause) {
        super(message, cause);
    }

    public TokenException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
